package com.ynny.chapter11.mapper;

import com.ynny.chapter11.bean.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    //插入多条学生信息
    int insertManyStudent(@Param("student") List<Student> student);

    //根据学号、班级或者性别查询
  List<Student>selectByParam(Map map);
  //查询所有
   List<Student> selectAll();

   //根据学号更新姓名、性别、年龄
    int updateByNumber(Map map);

    //根据学号删除
    int deleteByNumber(String number);




}
